﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SystemLogs.aspx.cs" Inherits="WebPubManager_SystemLogs" %>

<%@ Register src="../UserControls/Calendar.ascx" tagname="Calendar" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>操作日志查询</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script type="text/jscript">
        //设置tabcontrol按钮的背景颜色
        function SetBackColor(varCtrl) {
            if (varCtrl == "0") {
                document.getElementById("td1").style.backgroundImage = "url(../images/top_button_05.gif)";
                document.getElementById("td2").style.backgroundImage = "url(../images/top_button_03.gif)";
            }
            else {
                document.getElementById("td1").style.backgroundImage = "url(../images/top_button_03.gif)";
                document.getElementById("td2").style.backgroundImage = "url(../images/top_button_05.gif)";
            }
        }
        function isIdCardNo() {
            var num = document.form1.txtIID.value;
            if (isNaN(num)) {
                alert("受理编号请输入数字！");
                document.form1.txtIID.value = "";
                return false;
            }
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 99%; margin: 0px auto; text-align: center;">
        <table border="0" id="tabMenu">
            <tr>
                <td id="td1" runat="server" style="background-image: url(../images/top_button_05.gif);
                    background-repeat: no-repeat; text-align: center; height: 35px; width: 93px;">
                    <a href="SystemLogs.aspx?flag=SystemLog">系统操作日志</a>
                </td>
                <td id="td2" runat="server" style="background-image: url(../images/top_button_03.gif);
                    background-repeat: no-repeat; text-align: center; height: 35px; width: 93px;">
                    <a href="SystemLogs.aspx?flag=InterfaceLog">接口操作日志</a>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td id="tdUserID" runat="server">
                    操作人<asp:TextBox ID="txtUserID" runat="server" Width="100px"></asp:TextBox>
                </td>
                <td>
                    操作时间(从)
                <uc1:Calendar ID="txtdatebegin" runat="server" />
                到:
                <uc1:Calendar ID="txtdateend" runat="server" />
                </td>
                <td id="tdddlOptid" runat="server">
                    操作平台<asp:DropDownList ID="ddlOptid" runat="server" Width="100px">
                        <asp:ListItem Selected="True" Value="0">请选择...</asp:ListItem>
                        <asp:ListItem Value="1">审批平台</asp:ListItem>
                        <asp:ListItem Value="2">办事大厅</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td id="tdFlag" runat="server">
                    调用类型<asp:DropDownList ID="ddlFlag" runat="server" Width="100px">
                        <asp:ListItem Selected="True" Value="0">请选择...</asp:ListItem>
                        <asp:ListItem Value="1">被调用</asp:ListItem>
                        <asp:ListItem Value="10">主动调用</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" OnClientClick="isIdCardNo()" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True"
            Width="100%" SkinID="List" HideTextLength="20" AutoGenerateColumns="False" ShowCmpAndCancel="False"
            AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="True"
            OnRowCreated="gridviewCar_RowCreated" OnOnLoadData="recvgrid_OnLoadData">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField HeaderText="操作人" DataField="userid" />
                <asp:BoundField HeaderText="操作类型" DataField="opttype" />
                <asp:BoundField HeaderText="操作描述" DataField="remark" />
                <asp:BoundField HeaderText="操作IP" DataField="ip" />
                <asp:BoundField HeaderText="操作平台" DataField="opttext" />
                <asp:BoundField HeaderText="操作语句" DataField="optsql" />
                <asp:BoundField HeaderText="操作时间" DataField="opttime" />
                <asp:TemplateField HeaderText="详情">
                    <ItemTemplate>
                        <asp:HyperLink ID="hyMessage" runat="server" Text="详情"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    
    </form>
</body>
</html>
